<?php $defaultProduct = array_shift($products); ?>

<div id="main">
	<div id="mcs2_container">
 		<a href="#"> TOP </a>
		<div class="customScrollBox">
			<div class="container" style="top: 0.000362396240234375px;">
				<div class="content">
					<?php $i=0; while($i<8) { ?>
						<div class="item">
							<?php echo CHtml::link(CHtml::image(Yii::app()->baseUrl.'/uploads/products/0001/1.jpg'),'#'/*,array('fashion/product','id'=>$products[$i]->id)*/); ?>							
						</div>
						<?php if(($i++)%2 == 1) { ?>
						<div class="clear"></div>
						<?php } ?>
					<?php } ?>
				</div>
			</div>
        	<div class="dragger_container" style="display: block;"> <div class="dragger ui-draggable" style="display: block; top: 0px;"></div> </div>
		</div>
	</div><!--end #mcs2_container-->

	<div class="product">
    	<div class="item">
			<?php echo CHtml::link(CHtml::image(Yii::app()->baseUrl.'/uploads/products/0001/product.jpg'),'#'); ?>
		</div>
    </div>
	
    <div class="product-detail">
    	<div class="text">
        	<h1>
			<?php echo Yii::t('label','Mã hàng: ').$defaultProduct->code; ?><br/>
            <?php echo Yii::t('label','Giá: ').Yii::app()->numberFormatter->formatCurrency($defaultProduct->price,'VND'); ?><br/>
            <?php echo Yii::t('label','Mô tả sản phẩm: '); ?><br/>
            <?php echo $defaultProduct->description; ?><br>
			<br/><br/><br/>
			<?php echo CHtml::link(Yii::t('label','Đặt hàng'),'#',array('class'=>"button")); ?>
        </h1></div>
        <div class="image-Thumbnails">
        	<div class="item"><?php echo CHtml::link(CHtml::image(Yii::app()->baseUrl.'/uploads/products/0001/1.jpg'),'#'); ?></div>
            <div class="item"><?php echo CHtml::link(CHtml::image(Yii::app()->baseUrl.'/uploads/products/0001/1.jpg'),'#'); ?></div>
        </div>
    </div>
</div>